home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-21 | 1.2 KB | 31 lines | [TEXT/MPS ] |
- ##========================================================================================
- ## AddFilesToObjectMasterProject
- ##
- ## This MPW script uses the MPW tool OM_SendAE (provided by Object Master) to add files
- ## to an Object Master project.
- ##
- ## Requirements:
- ## MPW, Object Master, and Apple Script
- ##
- ## Usage:
- ## 1. Launch Object Master and open an empty project. Note, the project:
- ## OpenDoc Parts Framework∫Goodies∫
- ## contains Mac and Windows empty projects with suitable macro settings.
- ## 2. Switch to MPW and enter the command:
- ## AddFilesToObjectMasterProject
- ##
- ## Thanks to Tom McRae!
- ##========================================================================================
-
- # Folders to parse
- set BedProjectFolders "`catenate {BedToolsDir}AutoTarg.txt | StreamEdit -e '/:≈/ Replace // ":" -c ∞'`"
-
- # Tell Object Master to add the text files in the {BedProjectFolders} folders
- set ScriptFile "{BedTempDir}AddFilesToOM.temp"
- echo '## Temporary file used by script: AddFilesToObjectMasterProject' > "{ScriptFile}"
- For projectFolder in {BedProjectFolders}
- echo OM_SendAE APRJ -LISTFILEalis ∂`files -r -o -f -t TEXT {projectFolder} ∂| search /.[chtk]/ ∂| search -r /nb.[ch]/∂` >> "{ScriptFile}"
- End
- Execute "{ScriptFile}"
- Delete "{ScriptFile}"
-